package com.zjitc;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/7 14:57
 * @description:
 */
@Configuration
@PropertySource("classpath:db.properties")
public class DataSourceProperties {


    @Value("${jdbc.driver}")
    private String driverClass;

    @Value("${jdbc.password}")
    private String password;

    @Value("${jdbc.username}")
    private String username;

    @Value("${jdbc.url}")
    private String jdbcUrl;

    @Value("${jdbc.number}")
    private Integer number;

    public String getDriverClass() {
        return driverClass;
    }

    public String getPassword() {
        return password;
    }

    public String getUsername() {
        return username;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public Integer getNumber() {
        return number;
    }
}
